package com.itcast.activiti.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itcast.activiti.domain.ApproveDefinitionSave;
import com.itcast.activiti.entity.ApproveDefinition;
import com.itcast.activiti.utils.ItcastPage;

/**
 * <p>
 * 审批定义表  服务类
 * </p>
 *
 * @author itcast
 * @since 2021-02-25
 */
public interface IApproveDefinitionService extends IService<ApproveDefinition> {
    // approve_definition：审批定义表：新增、更新
    ApproveDefinitionSave saveApproveDefinitionReturnSave(ApproveDefinitionSave in);

    // 查询审批定义表
    ApproveDefinition getApproveDefinition(String id);

    ItcastPage listApproveDefinitionPage(ItcastPage itcastPage);

    ApproveDefinition getApproveDefinitionByDefinitionIdAndTenantId(String definitionId, String tenantId);
}
